<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<table class="invoice-table view-table">
	<thead>
		<tr>
			<th>Product</th>
			<th>Code</th>
			<th>Discount %</th>
			<th>Unit Price</th>
			<th>Quantity</th>
			<th>Tax</th>
			<th>Tax</th>
			<th>Line Total</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${invoiceSkus}" var="item">
			<tr>
				<td>
					<span>${item.stockSku.name}</span>
				</td>
				<td>
					<span>${item.code}</span>
				</td>
				<td>
					<span>${item.discount}</span>
				</td>
				<td>
					<span>${item.price}</span>
				</td>
				<td>
					<span>${item.quantity}</span>
				</td>
				<td>
					<span>${item.taxOne}</span>
				</td>
				<td>
					<span>${item.taxTwo}</span>
				</td>
				<td>
					<span>${item.totalPrice}</span>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<table class="invoice-table view-table">
	<thead>
		<tr>
			<th>Service</th>
			<th>Info</th>
			<th>Discount %</th>
			<th>Cost</th>
			<th>Hours</th>
			<th>Tax</th>
			<th>Tax</th>
			<th>Line Total</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${invoiceServices}" var="item">
			<tr>
				<td>
					<span>${item.name}</span>
				</td>
				<td>
					<span>${item.info}</span>
				</td>
				<td>
					<span>${item.discount}</span>
				</td>
				<td>
					<span>${item.costPerHour}</span>
				</td>
				<td>
					<span>${item.hours}</span>
				</td>
				<td>
					<span>${item.taxOne}</span>
				</td>
				<td>
					<span>${item.taxTwo}</span>
				</td>
				<td>
					<span>${item.totalCost}</span>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<table class="invoice-table invoice-total view-table">
	<tbody>
		<tr class="tr-separator">
			<td colspan="2">
				<span></span>
			</td>
		</tr>
		<tr>
			<td>
				<span>Invoice Total</span>
			</td>
			<td>
				<span class="invoiceTotal">${invoice.totalPrice}</span>
			</td>
		</tr>
		<tr>
			<td>
				<span>Total Discount</span>
			</td>
			<td>
				<span>${invoice.discount}</span>
			</td>
		</tr>
	</tbody>
	<tfoot>
		<tr>
			<td>
				<span>Balance (USD)</span>
			</td>
			<td>
				<span>${invoice.totalPrice}</span>
			</td>
		</tr>
	</tfoot>
</table>